<template>
  <div>
    <van-nav-bar
      title="上课签到"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
    <div>
      <van-button
      class="les-select-scan-btn"
      type="primary" block>扫码登录</van-button>
      <van-button
      class="les-select-back-btn"
      type="default" block @click="onClickLeft()">返回应用中心</van-button>
    </div>
    </div>
</template>

<script>
  export default {
    created() {
      this.$data.role = this.$route.query.role;
    },
    data() {
      return {
        role: -1,
      };
    },
    methods:{
      onClickLeft() {
        this.$router.push({path:'/home',query:{role:this.$data.role}})
      }
    }
  }
</script>

<style>
  .les-select-scan-btn {
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
    margin-top: 8px;
    height: 44px;
    left: 10px;
    width: calc(100% - 20px);
  }
  .les-select-back-btn {
    font-size: 16px;
    color: #1D1D1D;
    text-align: center;
    margin-top: 8px;
    height: 44px;
    left: 10px;
    width: calc(100% - 20px);
  }
</style>
